<?php
/* @var $this RoleController */
/* @var $model Role */
/* @var $form CActiveForm */
?>

<div class="wide form">

<?php $form=$this->beginWidget('CActiveForm', array(
	'action'=>Yii::app()->createUrl($this->route),
	'method'=>'get',
)); ?>

<table>

	<tr>
		<td >
			Name:
		</td>
		<td >			
			<?php echo $form->textField($model,'name',array('size'=>30,'maxlength'=>45)); ?>
		</td>
	</tr>
	<tr>
		<td >
			Can Create/Edit Roles:			
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_edit_roles',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>	
		</td>
	</tr>
	
	<tr>
		<td >
			Can Create/Edit Roles:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_edit_users',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
		
	
	<tr>
		<td >
			Can Create/Edit Shifts:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_edit_shifts',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>	
	
	<tr>
		<td >
			Can Create/Edit Q-Shifts:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_edit_qshifts',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>	
	
	<tr>
		<td >
			Can Create Callbacks:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_callbacks',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
		
	<tr>
		<td >
			Can Edit Callbacks:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_edit_callbacks',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
			
	<tr>
		<td >
			Can Create Shift Change:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_shift_change',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
				
	<tr>
		<td >
			Can Create Shift Change:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_shift_change',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
					
	<tr>
		<td >
			Can Edit Shift Change:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_edit_shift_change',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
					
	<tr>
		<td >
			Can Create Q-Shift Change:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_create_qshift_change',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
					
	<tr>
		<td >
			Can Edit Q-Shift Change:		
		</td>
		<td >
			<?php echo $form->dropDownList($model, 'can_edit_qshift_change',
											array('1'=>'Yes',
												  '0'=>'No',
												  ),
											array('empty'=>''),
											array('style'=>'width:50px;',));?>				
		</td>
	</tr>
	
	<tr>
		<td >
			Team:
		</td>
		<td >			
		<?php echo $form->dropDownList($model,'team_id',
									   CHtml::listData(Team::model()->findAll(),
													   'idteam', 
													   'short_name'),	
										array('empty'=>''));?>
		</td>
	</tr>	
</table>

	<div class="buttons">
		<?php echo CHtml::submitButton('Search'); ?>
	</div>

<?php $this->endWidget(); ?>

</div><!-- search-form -->